package com.jic.market.request.largeTurntableTemplate;

import com.jic.common.base.vo.AdminOperate;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * description: LargeTurntableTemplateRequest
 * date: 2020/7/7 16:00
 * author: wangys
 * version: 1.0
 */
@Data
@Accessors(chain = true)
public class LargeTurntableTemplateRequest{

    @ApiModelProperty(notes = "id", required = true)
    private Long id;

    @ApiModelProperty(notes = "大转盘模板code")
    private String templateCode;

    @ApiModelProperty(notes = "模板名称", required = true)
    @NotEmpty(message = "请填写模板名称")
    private String templateName;

    @ApiModelProperty(notes = "模板类型，1自定义模板类型，2公共模板类型")
    private Integer templateType;

    @ApiModelProperty(notes = "自定义模板使用的公共模板id")
    private Long templateId;

    @ApiModelProperty(notes = "页面配置json")
    @Valid
    private LargeTurntableTemplateDescJsonRequest descJson;

    @ApiModelProperty(notes = "deptId")
    private Long deptId;

    @ApiModelProperty(notes = "创建开始时间")
    private Date createStartTime;

    @ApiModelProperty(notes = "创建结束时间")
    private Date createEndTime;

    private int start = 1;
    private int limit = 10;

    private AdminOperate adminOperate;

}
